home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / convert / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-23  |  1.1 KB  |  54 lines

  1. #
  2. #    makefile for user-contributed/lbl/hips/sources/cnvt
  3. #
  4.  
  5. PGMS =    toicc.out totiff.out tovida.out toraw_sep.out to3dplot.out tohips.out
  6. PGM5 =  color_ps.out headers.out torle.out
  7.  
  8. PUBLICLIB = -lccs -ltiff -lrle $(LIBRARY) $(OTHERLIBS) $(OTHERLIB2)
  9. LIBRARIES = $(LDFLAGS) -lscs4 $(PUBLICLIB)
  10. LIBRARIE5 = $(LDFLAGS) -lscs5 $(PUBLICLIB) -ljpeg
  11. CPPFLAGS2 = $(CPPFLAGS) -I$(CCS_ROOT)/include -DHIPS_IMAGE
  12.  
  13. .c.out:
  14.     $(LINKc) $* $< $(LIBRARIES) $(CPPFLAGS2) -DCOMMON_TOOL
  15.     strip $*
  16.     mv $* $(DESTDIR)
  17.     @touch $@
  18.  
  19. install:    $(PGMS) $(PGM5)
  20.  
  21.  
  22. #    Routines which require special parameters
  23.  
  24. $(PGM5):
  25.     $(LINKc) $* $< $(LIBRARIE5) $(CPPFLAGS2) -DCOMMON_TOOL
  26.     strip $*
  27.     mv $* $(DESTDIR)
  28.     @touch $@
  29.  
  30. toraw_sep.out:
  31.     @echo "toicc -w" > $(DESTDIR)/toraw_sep
  32.     @chmod 775 $(DESTDIR)/toraw_sep
  33.     @touch $@
  34.  
  35. tohips.out:
  36.     @if test ! -f $(DESTDIR)/tohips; then \
  37.         ln -s $(DESTDIR)/powertool $(DESTDIR)/tohips; \
  38.     else    if test ! -h $(DESTDIR)/tohips; then \
  39.         rm -f $(DESTDIR)/tohips; \
  40.         ln -s $(DESTDIR)/powertool $(DESTDIR)/tohips; fi; \
  41.     fi;
  42.     @touch $@
  43.  
  44. clean:    clean-pgm
  45. clean-all:    clean_all
  46.  
  47. man:
  48.  
  49. doc:
  50.  
  51. pristine:    pristine-pgm
  52.  
  53. FRC:
  54.